package com.sky.sd.system.feign;

import com.sky.sd.common.constant.AppConstant;
import com.sky.sd.common.web.response.Result;
import com.sky.sd.system.bean.dto.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * <br/>功能:
 * <br/>版本: 1.0
 * <br/>开发人员: 弓振
 * <br/>创建日期: 2020/6/30 16:16
 * <br/>修改日期: 2020/6/30 16:16
 * <br/>修改列表:
 */
@FeignClient(value = AppConstant.APPLICATION_SYSTEM_NAME, fallbackFactory = SysClientFallbackFactory.class)
public interface ISysClient {

    @GetMapping(AppConstant.CLIENT_INTERNAL_CALL + "/loginUser")
    Result<LoginUser> getLoginUser(@RequestParam("username") String username);

}
